package com.xxp.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.security.auth.callback.TextInputCallback;
import java.util.Date;
import java.util.List;

@Data
public class Book {

    private Integer id;
    //名称
    private String name;
    //描述
    private String description;
    //出版日期
    private String publishDate;
    //作者
    private String author;
    //出版社
    private String publisher;
    //分类
    private String category;
    //标准码
    private String bookNo;
    //封面
    private String cover;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createtime;
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updatetime;
    //积分
    private Integer score;
    //数量
    private Integer nums;

    private List<String> categories;

}
